package com.kuaiditu.assistant.util;

/**
 * Created by Eenie on 2017/9/6.
 * Email: eeniework@gmail.com
 * Des:
 */

public class OrderStateUtil {
    //客服取消
    public static String CUSTOMERCANCLE = "CUSTOMERCANCLE";
    //网点最后确认
    public static String NETSITECHECK = "NETSITECHECK";
    //快递员添加派件
    public static String COURIERADDORDER = "COURIERADDORDER";
    //快递员签收成功
    public static String COURIERSENDORDER = "COURIERSENDORDER";
    //快递员取消
    public static String COURIERCANCLE = "COURIERCANCLE";
    //网点下单
    public static String NETSITEXD = "NETSITEXD";
    //网点下单
    public static String NETSITEPAY = "NETSITEPAY";
    //快递员接单
    public static String COURIERPICK = "COURIERPICK";
    //网点取消
    public static String NETSITECANCLE = "NETSITECANCLE";


    public static String ORDER_ITEM_STATUE_ERROR = "NOTADD";
    public static String ORDER_ITEM_STATUE_ADD = "ADD";
    public static String ORDER_ITEM_STATUE_SEND = "SEND";


    public static String getOrderStateDes(String state) {
        String res = "未知状态";
        if (state.equals(CUSTOMERCANCLE)) {
            res = "客服取消";

        } else if (state.equals(NETSITECHECK)) {
            res = "网点最后确认";
        } else if (state.equals(COURIERADDORDER)) {
            res = "待派送";
        } else if (state.equals(COURIERSENDORDER)) {
            res = "签收成功";
        } else if (state.equals(COURIERCANCLE)) {
            res = "快递员取消";
        } else if (state.equals(NETSITEXD)) {
            res = "网点下单";
        } else if (state.equals(NETSITEPAY)) {
            res = "网点支付";
        } else if (state.equals(COURIERPICK)) {
            res = "待添加派件";
        } else if (state.equals(NETSITECANCLE)) {
            res = "网点取消";
        }
        return res;

    }

    public static String getOrderItemStateDes(String state) {
        String res = "未知状态";
        if (state.equals(ORDER_ITEM_STATUE_ERROR)) {
            res = "快件异常";
        } else if (state.equals(ORDER_ITEM_STATUE_ADD)) {
            res = "待派件";
        } else if (state.equals(ORDER_ITEM_STATUE_SEND)) {
            res = "已签收";
        }
        return res;

    }


}
